﻿@model BusinessLayer.RegInfo.Entities.MarketingFullInfo

@{
    ViewBag.Title = "Details of  marketing";
}

<h2>Details of  marketing</h2>
    
        <div>
            
                
                
                   <table>
                       <tr>
                <td class="editor-label">
                    @Html.LabelFor(m => m.Code)
                </td>
                <td class="editor-field">
                    @Html.TextBoxFor(m => m.Code, new { @disabled = true})
                   
                </td>
                       </tr>
                <tr>
                <td class="editor-label">
                    @Html.LabelFor(m => m.Title)
                </td>
                <td class="editor-field">
                    @Html.TextBoxFor(m => m.Title, new { @disabled = true})
                </td>
                       </tr>
                <tr>
                <td class="editor-label">
                @Html.LabelFor(m => m.SubscriptionID)
            </td>
            <td class="editor-field">
                @Html.TextBoxFor(m => m.SubscriptionCode, new { @disabled = true})
            </td>
                       </tr>
                       <tr>
            <td class="editor-label">
                @Html.LabelFor(m => m.MarketingCatID)
            </td>
            <td class="editor-field">
                @Html.TextBoxFor(m => m.CategoryCode, new { @disabled = true})
            </td>
                       </tr>
                       <tr>
            <td class="editor-label">
                @Html.LabelFor(m => m.FromDate)
            </td>
            <td class="editor-field">
                @Html.TextBoxFor(m => m.FromDate, new { @disabled = true})
                
            </td>
                       </tr>
                       <tr>
            <td class="editor-label">
                @Html.LabelFor(m => m.ToDate)
            </td>
            <td class="editor-field">
                @Html.TextBoxFor(m => m.ToDate, new { @disabled = true})
            </td></tr>
                       <tr>
                <td class="editor-label">
                @Html.LabelFor(m => m.Contents)
            </td>
            <td class="editor-field">
                @Html.TextAreaFor(m => m.Contents, new { id = "txaContents"})
                
            </td>
                       </tr>
            @if(Model.CategoryCode==BackEnd.Common.Constants.MarketingCategories.COUPON){
                <tr>
                <td class="editor-label">
                    @Html.LabelFor(m => m.CouponDiscount)
                </td>
                <td class="editor-field">
                     @Html.TextBoxFor(m => m.CouponDiscount, new { @disabled = true})
                </td>
                    </tr>
            <tr>
                <td class="editor-label" id="lblCouponCode">
                    @Html.LabelFor(m => m.CouponCode)
                </td>
                <td class="editor-field" id="txtCouponCode">
                    @Html.TextBoxFor(m => m.CouponCode, new { @disabled = true})
                </td>
                    </tr>
            }
            else{
                <tr>
                <td class="editor-label">
                    @Html.LabelFor(m => m.Discount)
                </td>
                <td class="editor-field">
                     @Html.TextBoxFor(m => m.Discount, new { @disabled = true})
                </td>
                </tr>
            }
<tr>
                 <td class="editor-label">
                    @Html.LabelFor(m => m.Status)
                </td>
                <td class="editor-field">
                   @Html.TextBoxFor(m => m.Status, new { @disabled = true})
                   
                </td>
                       </tr>
                </table>     
            
        </div>
    

   <script src="~/Scripts/ckeditor/ckeditor.js"></script>
    <script src="~/Scripts/ckeditor/adapters/jquery.js"></script>
    @*@Scripts.Render("~/bundles/ckeditor")*@
    <script type="text/javascript">
        $(function () {

            //txaContents
            $('#txaContents').ckeditor();


        });

    </script>